package com.yc.springcloud;

import com.netflix.ribbon.Ribbon;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author DELL
 * @Date 2024/10/4 15:45
 * @Version 1.0
 */
//使用指定的 Ribbon 负载均衡算法规则
@RibbonClient(name = "MEMBER-SERVICE-PROVIDER" , configuration = Ribbon.class)
@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
public class MemberConsumerApplication {
	public static void main(String[] args) {

		SpringApplication.run(MemberConsumerApplication.class,args);
	}
}
